package biz.ezcom.design.pattern.decorator;

/**
 * 装饰器：帽子
 */
public class ComponentDecoratorHat extends ComponentDecorator{

	public ComponentDecoratorHat() {
	}
	
	public ComponentDecoratorHat(Component component) {
		super(component);
	}
	
	@Override
	public void operation(){
		System.out.println("ComponentDecoratorHat 脱帽子");
		super.operation();
		System.out.println("ComponentDecoratorHat 带帽子");
	}
}
